<div class="dux-page-header am-cf">
    <div class="page-title">
        <a class="am-btn am-btn-primary" href="{url('index')}"> 返回列表</a>
    </div>
    <div class="page-action">
        <a class="am-btn am-btn-danger" href="javascript:location.reload();"><i class="am-icon-refresh"></i></a>
    </div>
</div>

<div class="dux-body">
    <div class="am-panel am-panel-default dux-panel">
        <div class="am-panel-hd">{$assignName}广告位</div>
        <div class="am-panel-bd">
            <form class="am-form  am-form-horizontal dux-form" data-dux="form-bind" method="post">
                <fieldset>
                    <div class="am-form-group">
                        <label class="am-u-md-2 am-u-sm-12 am-form-label">广告位名称</label>
                        <div class="am-u-md-10 am-u-sm-12">
                            <input type="text" name="name" value="{$info.name}" placeholder="请输入广告位名称" required>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-u-md-2 am-u-sm-12 am-form-label">广告位标识</label>
                        <div class="am-u-md-10 am-u-sm-12">
                            <input type="text" name="label" value="{$info.label}" placeholder="方便广告位调用不可重复" required>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-md-2 am-u-sm-12 am-form-label">广告类型</label>
                        <div class="am-u-md-10 am-u-sm-12">
                            <div class="am-g">
                                <label class="am-radio-inline">
                                    <!--if{!$info['type']}-->
                                    <input name="type" checked="checked" value="0" type="radio">
                                    <!--{else}-->
                                    <input  name="type" value="0" type="radio">
                                    <!--{/if}-->
                                    文字
                                </label>

                                <label class="am-radio-inline">
                                    <!--if{$info['type']}-->
                                    <input name="type" value="1" checked="checked" type="radio">
                                    <!--{else}-->
                                    <input name="type" value="1" type="radio">
                                    <!--{/if}-->
                                    图片
                                </label>
                            </div>
                        </div>
                    </div>


                    <div class="am-form-group">
                        <label class="am-u-md-2 am-u-sm-12 am-form-label">状态</label>
                        <div class="am-u-md-10 am-u-sm-12">
                            <div class="am-g">
                                <?php if(!isset($info['status'])) $info[ 'status']=1 ; ?>
                                <label class="am-radio-inline">
                                    <!--if{$info['status']}-->
                                    <input name="status" checked="checked" value="1" type="radio">
                                    <!--{else}-->
                                    <input  name="status" value="1" type="radio">
                                    <!--{/if}-->
                                    正常
                                </label>

                                <label class="am-radio-inline">
                                    <!--if{!$info['status']}-->
                                    <input name="status" value="0" checked="checked" type="radio">
                                    <!--{else}-->
                                    <input name="status" value="0" type="radio">
                                    <!--{/if}-->
                                    禁用
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <div class="am-u-sm-offset-12 am-u-md-offset-2">
                            <input type="hidden" name="pos_id" value="{$info.pos_id}">
                            <button class="am-btn am-btn-primary" type="submit" disabled>保存</button>
                        </div>
                    </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>